﻿@model IEnumerable<Project5.Models.QuestionModel>

<table class="table table-condensed table-hover" id="questionTable">
    <tr>
            <th>
            Question Text
        </th>
        <th>
            Question Type
        </th>
        <th></th>
    </tr>
    @if (Model != null)
    {

        foreach (var item in Model)
        {
            
            <tr>
                <td>
                    @item.Question
                </td>
                    @if(item.Type == 1) {
                        <td>Text Response</td>
                    } else if (item.Type == 2){
                        <td>Multiple Choice</td>
                    } else {
                        <td>True/False</td>
                    }
                            
            </tr>
            
        }

    }
</table>